/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controllers;

import play.mvc.Controller;
import play.mvc.With;

/**
 *
 * @author Administrador
 */
@With(Secure.class)
public class frontController extends Controller{
    
   static String username;

    
    public static void dispatcher(){
        
        username=Security.connected();
        session.clear();

        String controler = null;
        
        if(username.equals("00000000")){
            controler="Comite.panelComite";
        }else if(username.equals("99999999")){
            controler="CAdministrador.panelAdministrador";
        }else{
            //if(username.equals("11111111")){
             controler="CAlumno.panelAlumno";   
          //  }
        }

        redirect(controler);
        
    }
    
}
